package com.we.wecc.aw.mid.model.in;

import com.we.wecc.aw.db.model.Award;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.beans.BeanUtils;

import java.util.Date;

@ApiModel("本期活动-入")
public class AwardIn {

    @ApiModelProperty("期数id，修改时必传")
    private Integer id;

    @ApiModelProperty("商品id")
    private Integer productId;

    @ApiModelProperty("单次投资额")
    private Double investment;

    @ApiModelProperty("目标金额")
    private Integer amount;

    @ApiModelProperty("单人每天投资次数")
    private Integer times;

    @ApiModelProperty("别人帮我助力的有效值")
    private Integer boostLim;

    @ApiModelProperty("每天给别人助力的次数")
    private Integer boostNum;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Double getInvestment() {
        return investment;
    }

    public void setInvestment(Double investment) {
        this.investment = investment;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public Integer getTimes() {
        return times;
    }

    public void setTimes(Integer times) {
        this.times = times;
    }

    public Integer getBoostLim() {
        return boostLim;
    }

    public void setBoostLim(Integer boostLim) {
        this.boostLim = boostLim;
    }

    public Integer getBoostNum() {
        return boostNum;
    }

    public void setBoostNum(Integer boostNum) {
        this.boostNum = boostNum;
    }

    public Award toAward(){
        Award a = new Award();
        BeanUtils.copyProperties(this, a);
        return a;
    }
}
